
/* 
 * CreateDate 2017-08-03
 *
 * Email ：darkidiot@icloud.com 
 * School：CUIT 
 * Copyright For darkidiot
 */
package com.tiptop.mybatis.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.tiptop.mybatis.model.User;

/**
 *  Mapper服务
 * 
 * @author tiptop
 * @version 1.0
 */
@Mapper
public interface UserMapper{

	User load(@Param("id")Long id);
	
	List<User> loads(@Param("ids")List<Long> ids);
	
	List<User> list(Map<String, Object> criteria);

	List<User> listAll();

	List<User> pagingRow(Map<String, Object> criteria, Integer offset, Integer limit);

	Integer pagingCount(Map<String, Object> criteria);
	
	Integer create(User bean);

	Integer creates(List<User> beanList);
	
	Integer update(User bean);

	Integer delete(@Param("id")Long id);
	
	Integer deletes(@Param("ids")List<Long> ids);
}
